import java.security.spec.RSAOtherPrimeInfo;

public class Test2 {
    public static void main(String[] args) {
        String str = "12345ABC";
        char[] ch=str.toCharArray();
        for (int i=0;i<str.length();i++){
            System.out.println(ch[i]);
        }
    }
    public static void main3(String[] args) {
        BinarySearchTree bs = new BinarySearchTree();
//        bs.insert(10);
//        bs.insert(2);
//        bs.insert(11);
//        bs.insert(15);
        bs.insert(10);
        bs.insert(2);
        bs.insert(13);
        bs.insert(12);
        bs.insert(15);
        bs.insert(14);
        bs.remove(13);
    }
    public static void main2(String[] args) {
        Repetition_BinarySearchTree rb = new Repetition_BinarySearchTree();
        rb.insert(10);
        rb.insert(2);
        rb.insert(13);
        rb.insert(12);
        rb.insert(15);
//        System.out.println(rb.search(10));
//        System.out.println(rb.search(11));
        System.out.println(rb.remove(13));
    }

    public static void main1(String[] args) {
        BinarySearchTree binarySearchTree = new BinarySearchTree();
        binarySearchTree.insert(10);
        binarySearchTree.insert(6);
        binarySearchTree.insert(14);
        binarySearchTree.insert(4);
        binarySearchTree.insert(8);
        binarySearchTree.insert(12);
        binarySearchTree.insert(16);

        binarySearchTree.Convert(binarySearchTree.root);
    }
}
